package com.cn.mapper.dao.db5.Equipment;

import com.cn.bean.pojo.PartsManagement.TeamPersonnelMapping;
import com.cn.bean.pojo.bc.User;
import com.cn.bean.pojo.lbj.ComponentSingleRegistrationTable;
import com.cn.bean.pojo.workOrder.BusinessItemWorkOrderPool;
import com.cn.bean.pojo.workOrder.WorkOrderPlanMainTable;
import com.cn.bean.pojo.workOrder.WorkOrderPlanSubTable;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WorkOrderPlanDao {
    List<WorkOrderPlanMainTable>selectWorkOrderPlan(WorkOrderPlanMainTable workOrderPlanMainTable);
    List<WorkOrderPlanMainTable>selectWorkOrderPlanAll(WorkOrderPlanMainTable workOrderPlanMainTable);
    List<WorkOrderPlanSubTable>selectWorkOrderPlanSub(WorkOrderPlanSubTable workOrderPlanSubTable);
    List<BusinessItemWorkOrderPool>selectWorkOrderPool(BusinessItemWorkOrderPool businessItemWorkOrderPool);
    List<User>selectUser(User user);
    List<TeamPersonnelMapping>selectWorkTeam(TeamPersonnelMapping teamPersonnelMapping);
    Boolean insertWorkOrderPlan(WorkOrderPlanMainTable workOrderPlanMainTable);
    Boolean insertWorkOrderPlanSub(WorkOrderPlanSubTable workOrderPlanSubTable);
    Boolean insertWorkOrderPool(BusinessItemWorkOrderPool workOrderPool);
    Boolean updateWorkOrderAudit(int id);
    Boolean delWorkOrderAudit(int id);
    Boolean lockWorkOrder(ComponentSingleRegistrationTable componentSingleRegistrationTable);
    Boolean openWorkOrder(String uniqueCode);
    Integer getWorkOrderPlanMainAutoid();
    Integer getWorkOrderPlanSubAutoid();
    Integer getWorkOrderPoolAutoid();
    //查询委外主表
    List<BusinessItemWorkOrderPool> selectBusinessItemWorkOrderPool(@Param("workOrderCode")String workOrderCode,@Param("page")int page,@Param("limit")int limit);
    //回显委外主表
    List<BusinessItemWorkOrderPool> selectBusinessItemWorkOrderPoolId(@Param("id")int id);
    //回显委外对应子表
    List<WorkOrderPlanSubTable> selectWorkOrderPlanSubTable(@Param("mid")int mid);

}
